package com.lee9213.conference.track.management.entity;

import java.util.List;

/**
 * @author lee9213@163.com
 * @version 1.0
 * @date 2018-07-11 18:07
 */
public class Conference {

    private List<TrackEntity> trackEntities;

    public Conference(List<TrackEntity> trackEntities) {
        this.trackEntities = trackEntities;
    }

    public void output() {
        TrackEntity trackEntity;
        List<SessionEntity> sessionEntities;
        for (int i = 0; i < trackEntities.size(); i++) {
            trackEntity = trackEntities.get(i);
            sessionEntities = trackEntity.getSessionEntities();
            System.out.printf("Track:%s %n", (i + 1));

            sessionEntities.forEach(sessionEntity -> sessionEntity.getTalkEntity().forEach(System.out::println));
            System.out.println();
        }
    }
}
